package com.cake.liulanxiangzhu.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName admin_banner
 */
@TableName(value ="admin_banner")
@Data
public class AdminBanner implements Serializable {
    /**
     * 轮播图ID
     */
    @TableId(type = IdType.AUTO)
    private Integer bannerId;

    /**
     * 轮播图名称
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY) //sql语句用相当于mybatis的xml文件中的if判定条件判断：name != null and name != ‘’
    private String bannerName;

    /**
     * 轮播图
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String bannerIcon;

    /**
     * 创建时间
     */
    private Date creatTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}